<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<div class="middle padtop10 myclear">
	<div class="page-content">
		
		<!-- bread crumb -->
		<p id="bread-crumb">
			<a href="<?php echo base_url();?>">
				<?php echo $lang['home'];?>
			</a>
			<a href="<?php echo site_url('monitor/adsOnlineMonitoring');?>">
				<?php echo $lang['online_ads_monitoring'];?>
			</a>
			<?php echo $lang['online_campaign_inqueue_bigdata_monioring'];?>
		</p>
		<!-- end bread crumb -->
		<h3>
			<?php echo $lang['online_campaign_inqueue_bigdata_monioring'];?>
		</h3>
		<br/>
		<div>
			<span>Tổng số campaign trong queue: <b><?php echo count($rows);?></b></span>
			<table cellpadding="0" cellspacing="0" width="100%" border="1" class="martop10 tbl-list">
			<tr>
				<td class="td-label"><strong>Stt</strong></td>
                <td class="td-label"><strong>ID chiến dịch</strong></td>
				<td class="td-label"><strong>Tên chiến dịch</strong></td>
				<td class="td-label"><strong>Trạng thái</strong></td>
                <td class="td-label"><strong>Nhóm</strong></td>
                <td class="td-label"><strong>Người tạo</strong></td>
			</tr>
			<?php $i = 1; foreach ($rows as $item){?>
			<tr>
				<td><?php echo $i?></td>
                <td><?php echo $item->campaignId;?></td>
                <td>
					<a href="<?php echo site_url('monitor/campaignInQueueMonitoring/?campaignid='.$item->campaignId.'&campaignname='.$item->campaignname);?>">
						<?php echo $item->campaignname;?>
					</a>
				</td>
				<td><?php echo ($item->status == 1 ? 'WAIT' : 'KILL');?></td>
                <td><?php echo ($item->typegroup == 1 ? 'Nội bộ' : 'Khách hàng');?></td>
                <td><?php echo $item->username;?></td>
			</tr>
			<?php $i++; }?>
		</table>
		</div>
	</div>
</div>
<br/>
<br/>